﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NyBio.Model
{

    public class Schedule
    {

        private int id;
        private DateTime time;
        private int movieId;
        private int roomId;
        private decimal price;


        public Schedule()
        {
            id = 0;
            time = new DateTime();
            movieId = 0;
            roomId = 0;
            price = 0;
        }
        public Schedule(int id, int movieId, int roomId)
        {
            this.id = id;
            this.time = new DateTime();
            this.movieId = movieId;
            this.roomId = roomId;
            this.price = 0;
        }
        public Schedule(int id, DateTime time, int movieId, int roomId, decimal price)
        {
            this.id = id;
            this.time = time;
            this.movieId = movieId;
            this.roomId = roomId;
            this.price = price;
        }

        public Schedule(DateTime time, int movieId, int roomId, decimal price)
        {
            this.time = time;
            this.movieId = movieId;
            this.roomId = roomId;
            this.price = price;
        }


        #region get%set
        public int _id
        {
            get { return id; }
            set { id = value; }
        }

        public DateTime _time
        {
            get { return time; }
            set { time = value; }
        }

        public int _movieId
        {
            get { return movieId; }
            set { movieId = value; }
        }

        public int _roomId
        {
            get { return roomId; }
            set { roomId = value; }
        }

        public decimal _price
        {
            get { return price; }
            set { price = value; }
        }

        //public String _title
        //{
        //    get { return movieId._title; }
        //    set { movieId._title = value; }
        //}
        #endregion
    }
}